<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>线程池: threadsPoolMsg结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">线程池<span id="projectnumber">&#160;1.0.0</span>
   </div>
   <div id="projectbrief">多线程并发工具</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">成员变量</a>  </div>
  <div class="headertitle"><div class="title">threadsPoolMsg结构体 参考</div></div>
</div><!--header-->
<div class="contents">

<p>线程池信息结构体  
 <a href="structthreads_pool_msg.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="threads__pool_8h_source.html">threads_pool.h</a>&gt;</code></p>
<div class="dynheader">
threadsPoolMsg 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="structthreads_pool_msg__coll__graph.png" border="0" usemap="#athreads_pool_msg_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
成员变量</h2></td></tr>
<tr class="memitem:a80ed574e122423cf9ffafd4b2d1cfb9c" id="r_a80ed574e122423cf9ffafd4b2d1cfb9c"><td class="memItemLeft" align="right" valign="top">pthread_mutex_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a80ed574e122423cf9ffafd4b2d1cfb9c">mtxUn</a></td></tr>
<tr class="separator:a80ed574e122423cf9ffafd4b2d1cfb9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fb5277da524002442dfdd04bd95a852" id="r_a0fb5277da524002442dfdd04bd95a852"><td class="memItemLeft" align="right" valign="top">pthread_cond_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a0fb5277da524002442dfdd04bd95a852">codUn</a></td></tr>
<tr class="separator:a0fb5277da524002442dfdd04bd95a852"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a0f5965804f3bc796600f6ecf66ba20" id="r_a0a0f5965804f3bc796600f6ecf66ba20"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a0a0f5965804f3bc796600f6ecf66ba20">shutDown</a></td></tr>
<tr class="separator:a0a0f5965804f3bc796600f6ecf66ba20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8281735069450c11d1154f0dce28f083" id="r_a8281735069450c11d1154f0dce28f083"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a8281735069450c11d1154f0dce28f083">waitingTasksCot</a></td></tr>
<tr class="separator:a8281735069450c11d1154f0dce28f083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67c4752b08cc34e3217c42abbbabd719" id="r_a67c4752b08cc34e3217c42abbbabd719"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a67c4752b08cc34e3217c42abbbabd719">activeThreadsCot</a></td></tr>
<tr class="separator:a67c4752b08cc34e3217c42abbbabd719"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78a0c6c3b579b2099ac3e12e8e5ada62" id="r_a78a0c6c3b579b2099ac3e12e8e5ada62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a78a0c6c3b579b2099ac3e12e8e5ada62">maxWaitingTasksCot</a></td></tr>
<tr class="separator:a78a0c6c3b579b2099ac3e12e8e5ada62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa383e3c726e24f65bd04b8559d74afec" id="r_aa383e3c726e24f65bd04b8559d74afec"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#aa383e3c726e24f65bd04b8559d74afec">maxActiveThreadsCot</a></td></tr>
<tr class="separator:aa383e3c726e24f65bd04b8559d74afec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefa9644b2c0e4132e99fd66a751fa38a" id="r_aefa9644b2c0e4132e99fd66a751fa38a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="threads__pool_8h.html#abf857be8d505f4cc5457764683476a96">TaskMsg_st_pt</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#aefa9644b2c0e4132e99fd66a751fa38a">tasksLinkedQueueEntr</a></td></tr>
<tr class="separator:aefa9644b2c0e4132e99fd66a751fa38a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f16ca9c117fe8e1a878720fb801e4e1" id="r_a0f16ca9c117fe8e1a878720fb801e4e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="threads__pool_8h.html#ae4d780691b4e7bc3472f4612e32a9c58">ThreadMsg_st_pt</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthreads_pool_msg.html#a0f16ca9c117fe8e1a878720fb801e4e1">threadsLinkedListEntr</a></td></tr>
<tr class="separator:a0f16ca9c117fe8e1a878720fb801e4e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>线程池信息结构体 </p>
<p>包含线程池的所有状态信息和管理结构 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00057">57</a> 行定义.</p>
</div><h2 class="groupheader">结构体成员变量说明</h2>
<a id="a67c4752b08cc34e3217c42abbbabd719" name="a67c4752b08cc34e3217c42abbbabd719"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67c4752b08cc34e3217c42abbbabd719">&#9670;&#160;</a></span>activeThreadsCot</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int threadsPoolMsg::activeThreadsCot</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>活跃线程量 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00064">64</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00456">addThread()</a>, <a class="el" href="threads__pool_8c_source.html#l00513">destroyThreadMsgsLinkedList()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00276">insertNewThreadMsg()</a>, <a class="el" href="threads__pool__test_8c_source.html#l00033">main()</a>, <a class="el" href="threads__pool_8c_source.html#l00486">reduceThread()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00298">removeThreadMsg()</a>.</p>

</div>
</div>
<a id="a0fb5277da524002442dfdd04bd95a852" name="a0fb5277da524002442dfdd04bd95a852"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0fb5277da524002442dfdd04bd95a852">&#9670;&#160;</a></span>codUn</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pthread_cond_t threadsPoolMsg::codUn</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>条件量 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00061">61</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00396">addNewTask()</a>, <a class="el" href="threads__pool_8c_source.html#l00513">destroyThreadMsgsLinkedList()</a>, <a class="el" href="threads__pool_8c_source.html#l00556">destroyThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00185">threadRoutine()</a>.</p>

</div>
</div>
<a id="aa383e3c726e24f65bd04b8559d74afec" name="aa383e3c726e24f65bd04b8559d74afec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa383e3c726e24f65bd04b8559d74afec">&#9670;&#160;</a></span>maxActiveThreadsCot</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int threadsPoolMsg::maxActiveThreadsCot</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大活跃线程量 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00066">66</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00456">addThread()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>.</p>

</div>
</div>
<a id="a78a0c6c3b579b2099ac3e12e8e5ada62" name="a78a0c6c3b579b2099ac3e12e8e5ada62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78a0c6c3b579b2099ac3e12e8e5ada62">&#9670;&#160;</a></span>maxWaitingTasksCot</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int threadsPoolMsg::maxWaitingTasksCot</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大等待任务量 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00065">65</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00396">addNewTask()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>.</p>

</div>
</div>
<a id="a80ed574e122423cf9ffafd4b2d1cfb9c" name="a80ed574e122423cf9ffafd4b2d1cfb9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80ed574e122423cf9ffafd4b2d1cfb9c">&#9670;&#160;</a></span>mtxUn</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pthread_mutex_t threadsPoolMsg::mtxUn</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>互斥锁 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00060">60</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00396">addNewTask()</a>, <a class="el" href="threads__pool_8c_source.html#l00456">addThread()</a>, <a class="el" href="threads__pool_8c_source.html#l00556">destroyThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00431">reduceTask()</a>, <a class="el" href="threads__pool_8c_source.html#l00486">reduceThread()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00185">threadRoutine()</a>.</p>

</div>
</div>
<a id="a0a0f5965804f3bc796600f6ecf66ba20" name="a0a0f5965804f3bc796600f6ecf66ba20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a0f5965804f3bc796600f6ecf66ba20">&#9670;&#160;</a></span>shutDown</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool threadsPoolMsg::shutDown</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁标记 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00062">62</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00556">destroyThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00298">removeThreadMsg()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00185">threadRoutine()</a>.</p>

</div>
</div>
<a id="aefa9644b2c0e4132e99fd66a751fa38a" name="aefa9644b2c0e4132e99fd66a751fa38a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefa9644b2c0e4132e99fd66a751fa38a">&#9670;&#160;</a></span>tasksLinkedQueueEntr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="threads__pool_8h.html#abf857be8d505f4cc5457764683476a96">TaskMsg_st_pt</a> threadsPoolMsg::tasksLinkedQueueEntr</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>任务链队入口 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00067">67</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00103">dequeueTaskMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00535">destroyTaskMsgsLinkedQueue()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00079">inqueueNewTaskMsg()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00134">removeDestTaskMsg()</a>.</p>

</div>
</div>
<a id="a0f16ca9c117fe8e1a878720fb801e4e1" name="a0f16ca9c117fe8e1a878720fb801e4e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f16ca9c117fe8e1a878720fb801e4e1">&#9670;&#160;</a></span>threadsLinkedListEntr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="threads__pool_8h.html#ae4d780691b4e7bc3472f4612e32a9c58">ThreadMsg_st_pt</a> threadsPoolMsg::threadsLinkedListEntr</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>线程链表入口 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00068">68</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00513">destroyThreadMsgsLinkedList()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00276">insertNewThreadMsg()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00298">removeThreadMsg()</a>.</p>

</div>
</div>
<a id="a8281735069450c11d1154f0dce28f083" name="a8281735069450c11d1154f0dce28f083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8281735069450c11d1154f0dce28f083">&#9670;&#160;</a></span>waitingTasksCot</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int threadsPoolMsg::waitingTasksCot</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>等待任务量 </p>

<p class="definition">在文件 <a class="el" href="threads__pool_8h_source.html">threads_pool.h</a> 第 <a class="el" href="threads__pool_8h_source.html#l00063">63</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool_8c_source.html#l00396">addNewTask()</a>, <a class="el" href="threads__pool_8c_source.html#l00103">dequeueTaskMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00535">destroyTaskMsgsLinkedQueue()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00079">inqueueNewTaskMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00431">reduceTask()</a>, <a class="el" href="threads__pool_8c_source.html#l00134">removeDestTaskMsg()</a> , 以及 <a class="el" href="threads__pool_8c_source.html#l00185">threadRoutine()</a>.</p>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>inc/<a class="el" href="threads__pool_8h_source.html">threads_pool.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2025年 九月 13日 星期六 03:23:00 , 为 线程池使用 &#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
